﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ImoviesBlazor.Shared.Entities
{
    public class AnimationVlink
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public uint Id { get; set; }

        [Required]
        public string AnimationId { get; set; }

        [Required]
        [StringLength(100)]
        public string Name { get; set; }

        [Required]
        public string Url { get; set; }

        public string RealUrl { get; set; } = string.Empty;

        public AnimationVlink()
        {
        }

        public AnimationVlink(string animationId, string name, string url)
        {
            this.AnimationId = animationId;
            this.Name = name;
            this.Url = url;
        }
    }
}
